<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>注册账号</title>
 <link rel="stylesheet" type="text/css" href="static/Login.css"/> 
</head>
<body>
<div id="login">  
        <h1>Register</h1>  
        <form method="post" action="RegistServlet">  
            <input type="text" required="required" placeholder="用户名" name="u"></input>  
            <input type="password" required="required" placeholder="密码" name="p"></input>  
            <button class="but" type="submit">注册</button>
              <label for="password">
              返回
           <a href="/Stu/login.jsp" style="color:blue">登录</a>
           界面
              </label>
              <br/>
              <label>
              <%
              String state = (String) session.getAttribute("A1");
              session.removeAttribute("A1");
              if(state != null){
            	  out.print(state);
              }
              %>
              </label>
        </form>  
        
    </div>  
</body>
</html>